package com.wangshouyu.mp.offiaccount.message;

import com.wangshouyu.mp.message.MusicMessage;

import java.util.Objects;

/**
 * @author 王守钰
 * @date 2020年12月07日 14:05
 * @description 客服音乐消息
 */
public class KfMusicMessage extends BaseKfMessage{

    /**
     * 音乐
     */
    private MusicMessage music;

    public MusicMessage getMusic() {
        return music;
    }

    public void setMusic(MusicMessage music) {
        this.music = music;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        KfMusicMessage that = (KfMusicMessage) o;
        return Objects.equals(music, that.music);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), music);
    }

    @Override
    public String toString() {
        return "KfMusicMessage{" +
                "music=" + music +
                '}';
    }
}
